import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.InputStreamReader;

public class TestForMe{
	public static final void main(String[] args){
		 try{
			  FileInputStream fstream = new FileInputStream("E:\\workspaces\\dfksr\\src\\New Text Document.txt");
			  DataInputStream in = new DataInputStream(fstream);
			  BufferedReader br = new BufferedReader(new InputStreamReader(in));
			  String strLine;
			  String buffer ="";
			  while ((strLine = br.readLine()) != null){
				  buffer += strLine+",\n";
			  }
			  buffer += buffer.substring(0, buffer.length()-2);
			  System.out.println(buffer);
			  in.close();
			    }catch (Exception e){
			  System.err.println("Error: " + e.getMessage());
			  }
	}
}